const app = getApp();
const questionBank = require('../../utils/questionBank.js');
Page({
  onLoad() {
    // 重启加载 isDeep (默认 false，轻度)
    app.globalData.isDeep = wx.getStorageSync('isDeep') || false;
    app.globalData.questions = questionBank.questions;
  },
  startTest() {
    app.globalData.isDeep = false;
    wx.setStorageSync('isDeep', false);
    wx.navigateTo({ url: '/pages/test/test' });
  },
  startDeepTest() {
    app.globalData.isDeep = true;
    wx.setStorageSync('isDeep', true);
    wx.navigateTo({ url: '/pages/test/test' });
  }
});